﻿using System;
using Microsoft.Practices.Unity;
using Microsoft.Practices.ServiceLocation;

namespace Infrastucture
{
    public abstract class Service
    {
        protected readonly IUnityContainer Container;

        public Service()
        {
            this.Container = ServiceLocator.Current.GetInstance<IUnityContainer>();
        }

        public Service(IUnityContainer container)
        {
            this.Container = container;
        }
    }
}
